/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.PhieuThuBLL;
import edu.nii.qlks.DataTransferObject.PhieuThuInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class PhieuThuControl {
    PhieuThuBLL PhieuThu = new PhieuThuBLL();
    
 
    public ArrayList LayDS() throws Exception{
        return PhieuThu.LayDS();
    }
        
    public void Insert(PhieuThuInfo phieuThuInfo) throws Exception{
        PhieuThu.Insert(phieuThuInfo);
    }
    
    public void Update(PhieuThuInfo phieuThuInfo) throws Exception{
        PhieuThu.Update(phieuThuInfo);
    }
    
    public void Delete(PhieuThuInfo phieuThuInfo) throws Exception{
        PhieuThu.Delete(phieuThuInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return PhieuThu.TaoMaTuDong(maGoc, batDau);
     }
}
